package com.mrjoew.weekend.services.impl.bz;

import com.mrjoew.weekend.entities.po.PropertiesCarouselPO;
import com.mrjoew.weekend.repositories.bz.PropertiesCarouselRepository;
import com.mrjoew.weekend.services.bz.PropertiesCarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Christopher Jones
 * @ClassName PropertiesCarouselServiceImpl
 * @explain
 * @date 2020/6/19 0019 11:29
 */
@Service
public class PropertiesCarouselServiceImpl implements PropertiesCarouselService {

    @Autowired
    private PropertiesCarouselRepository propertiesCarouselRepository;


    @Override
    public List<PropertiesCarouselPO> list(Integer position) {
        return propertiesCarouselRepository.findAllByPosition(position);
    }
}
